﻿<Window x:Class="MyFirstWpfApp.Slider"
        xmlns:my="clr-namespace:MyFirstWpfApp"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Slider" Height="286" Width="463">
    <Canvas>
        <my:MyDepPro Text="This is my dependency prop"  Wid="120" Hei="70" Canvas.Left="12" Canvas.Top="12" Size="{Binding ElementName=mySlider, Path=Value}"></my:MyDepPro>
        <Label Content="This is some sample text" Height="auto" HorizontalAlignment="Left" Margin="46,51,0,0" Name="myLbl" VerticalAlignment="Top" Width="auto" FontSize="{Binding ElementName=mySlider, Path=Value}" Canvas.Left="-34" Canvas.Top="71" />
        <Slider Height="144" HorizontalAlignment="Left" Margin="360,28,0,0" Name="mySlider" VerticalAlignment="Top" Width="32" Orientation="Vertical" Minimum="10" Maximum="100" />
    </Canvas>
</Window>
